<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>库存指标页面</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Microsoft YaHei", sans-serif;
        }

        body {
            background-color: #0a1d3a;
            color: #fff;
            padding: 20px;
        }

        .inventory-container {
            display: flex;
            gap: 15px;
            max-width: 1920px;
            margin: 0 auto;
        }

        /* 左右列样式 - 调整为与采购分析图表一致 */
        .chart-column {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        /* 中间列样式 */
        .center-column {
            flex: 2;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        /* 图表容器样式 - 与采购分析图表保持一致 */
        .inventory-chart-container {
            position: relative;
            height: 310px;
            border: 1px solid rgba(25, 186, 139, 0.17);
            padding: 0 15px 40px;
            background: rgba(255, 255, 255, 0.03);
            display: flex;
            flex-direction: column;
        }

        .inventory-chart-container::before {
            position: absolute;
            top: 0;
            left: 0;
            width: 10px;
            height: 10px;
            border-left: 2px solid #02a6b5;
            border-top: 2px solid #02a6b5;
            content: "";
        }

        .inventory-chart-container::after {
            position: absolute;
            top: 0;
            right: 0;
            width: 10px;
            height: 10px;
            border-top: 2px solid #02a6b5;
            border-right: 2px solid #02a6b5;
            content: "";
        }

        .inventory-chart-footer {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 40px;
        }

        .inventory-chart-footer::before {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 10px;
            height: 10px;
            border-bottom: 2px solid #02a6b5;
            border-left: 2px solid #02a6b5;
            content: "";
        }

        .inventory-chart-footer::after {
            position: absolute;
            bottom: 0;
            right: 0;
            width: 10px;
            height: 10px;
            border-bottom: 2px solid #02a6b5;
            border-right: 2px solid #02a6b5;
            content: "";
        }

        .inventory-chart-title {
            height: 48px;
            color: #ffffff;
            line-height: 48px;
            text-align: center;
            font-size: 20px;
            font-weight: 400;
            margin-bottom: 0;
        }

        .inventory-chart-placeholder {
            flex: 1;
            background: rgba(255, 255, 255, 0.03);
            display: flex;
            justify-content: center;
            align-items: center;
            color: #bbdefb;
            font-size: 18px;
            text-align: center;
            padding: 20px;
        }

        /* 数据卡片样式 - 与总览页签保持一致 */
        .stats-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-bottom: 20px;
        }

        .stat-card {
            background: rgba(22, 40, 75, 0.7);
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 0.1rem 0.3125rem rgba(0, 0, 0, 0.3);
            border: 1px solid #2a4a7c;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, #4fc3f7, #1976d2);
        }

        .stat-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 0.15rem 0.375rem rgba(0, 0, 0, 0.4);
            border-color: #4fc3f7;
        }

        .card-header {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }

        .card-icon {
            width: 40px;
            height: 40px;
            background: rgba(79, 195, 247, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
        }

        .card-icon i {
            font-size: 20px;
            color: #4fc3f7;
        }

        .card-title {
            font-size: 16px;
            font-weight: 600;
            color: #81d4fa;
        }

        .main-value {
            font-size: 28px;
            font-weight: 700;
            color: #4fc3f7;
            margin-bottom: 5px;
            text-shadow: 0 0 4px rgba(79, 195, 247, 0.3);
        }

        .value-unit {
            font-size: 16px;
            margin-left: 4px;
            color: #bbdefb;
        }

        .card-description {
            color: #bbdefb;
            font-size: 14px;
            margin-top: 8px;
            line-height: 1.5;
        }

        .trend-indicator {
            display: inline-flex;
            align-items: center;
            font-size: 14px;
            padding: 2px 8px;
            border-radius: 10px;
            margin-left: 8px;
        }

        .trend-up {
            background: rgba(76, 175, 80, 0.2);
            color: #4caf50;
        }

        .trend-down {
            background: rgba(244, 67, 54, 0.2);
            color: #f44336;
        }

        .progress-bar {
            height: 6px;
            background: rgba(42, 74, 124, 0.5);
            border-radius: 3px;
            margin-top: 10px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            border-radius: 3px;
            background: linear-gradient(90deg, #4fc3f7, #2196f3);
        }

        .card-footer {
            margin-top: 15px;
            font-size: 14px;
            color: #81d4fa;
            text-align: right;
        }

        /* 表格区域样式 - 改为上下结构 */
        .table-section {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .table-container {
            background: rgba(22, 40, 75, 0.7);
            border-radius: 10px;
            padding: 15px;
            border: 1px solid #2a4a7c;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .table-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            min-height: 48px;
        }

        .table-title {
            color: #4fc3f7;
            font-size: 20px;
            font-weight: 600;
            line-height: 1;
            margin: 0;
        }

        .data-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 17px;
        }

        .data-table th {
            background: rgba(30, 60, 114, 0.7);
            color: #4fc3f7;
            padding: 12px 8px;
            text-align: center;
            font-weight: 600;
            border-bottom: 1px solid #2a4a7c;
            word-break: break-word;
            line-height: 1.2;
        }

        .data-table td {
            padding: 12px 8px;
            text-align: center;
            border-bottom: 1px solid rgba(42, 74, 124, 0.5);
            color: #e0e0e0;
            vertical-align: middle;
        }

        .data-table tr:hover {
            background: rgba(56, 107, 201, 0.2);
        }

        /* 响应式设计 */
        @media (max-width: 1400px) {
            .inventory-container {
                flex-direction: column;
            }

            .chart-column {
                flex-direction: row;
                flex-wrap: wrap;
            }

            .chart-column .inventory-chart-container {
                flex: 1 0 calc(50% - 10px);
                min-width: 300px;
            }
        }

        @media (max-width: 768px) {
            .stats-row {
                grid-template-columns: 1fr;
            }

            .chart-column .inventory-chart-container {
                flex: 1 0 100%;
            }
        }
    </style>
</head>
<body>
<div class="inventory-container">
    <!-- 左列 - 4个图表 -->
    <div class="chart-column">
        <div class="inventory-chart-container">
            <div class="inventory-chart-title">近三年采购数据</div>
            <div class="inventory-chart-placeholder">图表区域 - 近三年采购数据对比分析</div>
            <div class="inventory-chart-footer"></div>
        </div>
        <div class="inventory-chart-container">
            <div class="inventory-chart-title">近十二个月采购数据</div>
            <div class="inventory-chart-placeholder">图表区域 - 月度采购金额趋势分析</div>
            <div class="inventory-chart-footer"></div>
        </div>
        <div class="inventory-chart-container">
            <div class="inventory-chart-title">各行业连续12个月库存数据</div>
            <div class="inventory-chart-placeholder">图表区域 - 各行业库存月度变化</div>
            <div class="inventory-chart-footer"></div>
        </div>
        <div class="inventory-chart-container">
            <div class="inventory-chart-title">2025年库存数据</div>
            <div class="inventory-chart-placeholder">图表区域 - 2025年库存分布分析</div>
            <div class="inventory-chart-footer"></div>
        </div>
    </div>

    <!-- 中间列 - 数据展示和表格 -->
    <div class="center-column">
        <!-- 第一行：三个数据展示块 -->
        <div class="stats-row">
            <div class="stat-card">
                <div class="card-header">
                    <div class="card-icon">
                        <i class="fas fa-boxes"></i>
                    </div>
                    <div class="card-title">当前库存总金额</div>
                </div>
                <div class="main-value">17.41<span class="value-unit">亿元</span></div>
                <div class="card-description">库存总价值，较上月<span class="trend-indicator trend-down">下降2.1%</span></div>
                <div class="progress-bar">
                    <div class="progress-fill" style="width: 65%"></div>
                </div>
                <div class="card-footer">库存周转率 5.8次/月</div>
            </div>

            <div class="stat-card">
                <div class="card-header">
                    <div class="card-icon">
                        <i class="fas fa-warehouse"></i>
                    </div>
                    <div class="card-title">库存物资种类</div>
                </div>
                <div class="main-value">1,248<span class="value-unit">种</span></div>
                <div class="card-description">物资种类总数，较上月<span class="trend-indicator trend-up">增加3.2%</span></div>
                <div class="progress-bar">
                    <div class="progress-fill" style="width: 78%"></div>
                </div>
                <div class="card-footer">新增物资 42种</div>
            </div>

            <div class="stat-card">
                <div class="card-header">
                    <div class="card-icon">
                        <i class="fas fa-chart-line"></i>
                    </div>
                    <div class="card-title">平均库存天数</div>
                </div>
                <div class="main-value">18.5<span class="value-unit">天</span></div>
                <div class="card-description">平均库存周期，较上月<span class="trend-indicator trend-down">减少1.2天</span></div>
                <div class="progress-bar">
                    <div class="progress-fill" style="width: 72%"></div>
                </div>
                <div class="card-footer">目标库存天数 ≤20天</div>
            </div>
        </div>

        <!-- 第二行：两个表格（上下结构） -->
        <div class="table-section">
            <div class="table-container">
                <div class="table-header">
                    <div class="table-title">2025年二级单位指标（发电）</div>
                </div>
                <table class="data-table">
                    <thead>
                    <tr>
                        <th>二级单位</th>
                        <th>库存金额<br>(万元)</th>
                        <th>库存周转率<br>(次/月)</th>
                        <th>平均库存天数<br>(天)</th>
                        <th>安全库存达标率<br>(%)</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td>华北分公司</td>
                        <td>12,458.70</td>
                        <td>6.2</td>
                        <td>16.5</td>
                        <td>92.4</td>
                    </tr>
                    <tr>
                        <td>东北分公司</td>
                        <td>9,743.25</td>
                        <td>5.8</td>
                        <td>18.2</td>
                        <td>88.7</td>
                    </tr>
                    <tr>
                        <td>华东分公司</td>
                        <td>15,682.41</td>
                        <td>7.1</td>
                        <td>14.3</td>
                        <td>95.2</td>
                    </tr>
                    <tr>
                        <td>华中分公司</td>
                        <td>7,956.33</td>
                        <td>4.9</td>
                        <td>21.8</td>
                        <td>85.3</td>
                    </tr>
                    <tr>
                        <td>南方分公司</td>
                        <td>11,247.89</td>
                        <td>6.5</td>
                        <td>15.7</td>
                        <td>91.8</td>
                    </tr>
                    </tbody>
                </table>
            </div>

            <div class="table-container">
                <div class="table-header">
                    <div class="table-title">2025年二级单位指标（煤炭）</div>
                </div>
                <table class="data-table">
                    <thead>
                    <tr>
                        <th>二级单位</th>
                        <th>煤炭库存量<br>(万吨)</th>
                        <th>库存周转率<br>(次/月)</th>
                        <th>平均库存天数<br>(天)</th>
                        <th>热值达标率<br>(%)</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td>河北分公司</td>
                        <td>125.8</td>
                        <td>8.2</td>
                        <td>12.3</td>
                        <td>96.5</td>
                    </tr>
                    <tr>
                        <td>山西分公司</td>
                        <td>98.4</td>
                        <td>7.6</td>
                        <td>13.5</td>
                        <td>94.8</td>
                    </tr>
                    <tr>
                        <td>内蒙古分公司</td>
                        <td>156.7</td>
                        <td>9.1</td>
                        <td>10.8</td>
                        <td>97.2</td>
                    </tr>
                    <tr>
                        <td>陕西分公司</td>
                        <td>87.3</td>
                        <td>6.9</td>
                        <td>14.9</td>
                        <td>93.7</td>
                    </tr>
                    <tr>
                        <td>新疆分公司</td>
                        <td>63.5</td>
                        <td>5.8</td>
                        <td>17.2</td>
                        <td>91.4</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>

    <!-- 右列 - 4个图表 -->
    <div class="chart-column">
        <div class="inventory-chart-container">
            <div class="inventory-chart-title">近三年库存周转率</div>
            <div class="inventory-chart-placeholder">图表区域 - 库存周转率年度趋势</div>
            <div class="inventory-chart-footer"></div>
        </div>
        <div class="inventory-chart-container">
            <div class="inventory-chart-title">连续12个月库存周转率</div>
            <div class="inventory-chart-placeholder">图表区域 - 月度库存周转率变化</div>
            <div class="inventory-chart-footer"></div>
        </div>
        <div class="inventory-chart-container">
            <div class="inventory-chart-title">2025年库存周转率</div>
            <div class="inventory-chart-placeholder">图表区域 - 2025年周转率分布</div>
            <div class="inventory-chart-footer"></div>
        </div>
        <div class="inventory-chart-container">
            <div class="inventory-chart-title">近三年闲废物资统计</div>
            <div class="inventory-chart-placeholder">图表区域 - 闲废物资趋势分析</div>
            <div class="inventory-chart-footer"></div>
        </div>
    </div>
</div>
</body>
</html>